package com.lujianbuping.system.opportunityprojectmanagementsystem;

import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class SpringMVCConfiguration implements WebMvcConfigurer {

    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/**")
                .allowedOrigins("/login")
                .allowedMethods("POST", "GET", "DELETE", "PATCH", "PUT");
    }

}
